<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\Product;
class Cart extends Model
{
    protected $table = 'cart';
    protected $fillable = [
        'id', 'userid','proid', 'addrid','price','num','created_at', 'updated_at','xuid'
    ];
    public function cartPro()
    {	
        return $this->hasOne(Product::class, 'id', 'proid');
    }
}
